<%-- 
    Document   : project
    Created on : 14 juil. 2011, 23:26:27
    Author     : Ayden
--%>

<div class="titleContainer">
    <h1><spring:message code="projects.title"/></h1>
</div>
<div class="module">
    <p><spring:message code="projects.list"/>:</p>
<c:forEach var="project" items="${projectList}">

    <div class="li_elem_left">
        <a href="./index.htm?proj=${project.id}"><b>${project.title}</b></a>
    </div>
    <%--
        <a href="./index.htm?proj=${project.id}">open</a> 
    --%>
    <div class="li_elem_right">
        <logic:equal name="userid" value="${project.ownerId}">
            <a href="./index.htm?action=myprojects&proj=${project.id}&delete">delete</a>
        </logic:equal>
    </div>
</c:forEach>
</div>
<div id="blocderoulant"> 
    <div id="deroulant">
        <form:form modelAttribute="projectInfo" class="module">
        <div class="element">            
            <label><spring:message code="project.title"/>: </label>
            <form:input path="projectTitle" />
            <font color="red"><form:errors path="projectTitle"/></font>
        </div>
        <div class="element">
            <label><spring:message code="project.description"/>: </label>
            <form:input path="projectDescription" />
            <font color="red"><form:errors path="projectDescription"/></font>
        </div>
        <div class="element">
            <label><spring:message code="project.users"/>: </label>
            <form:textarea path="projectUsers" />
            <font color="red"><form:errors path="projectUsers"/></font>
        </div>
        <input type="submit"/>
        </form:form>
    </div><div id="blocaction"> 
        <spring:message code="projects.create"/>
    </div>
</div>